<?php $this->renderPartial('../../common/_header');?>
<div class="container my-container">

    <div class="row">
        <div class="col">
            <div class="page-title"> 
                <h1><?php echo $title?></h1>
                <p><?php echo $title?></p>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col col-lg-9">

            <button id="crawl" class="btn btn-success">Crawl VNE</button>

            <div id="info"></div>
            <script>
                function crawlVne(){
                    $.get('<?php echo $this->createUrl('/hehe/web/crawl/ajaxGetJokeVnexpress')?>', function(data){
                        $('#info').html('<div>'+data.date + " | " + data.count + " | " + data.time+'</div>');
                        crawlVne();    
                    }, 'json');  
                }
                $('#crawl').click(function(){
                    crawlVne();
                });
            </script>

        </div>
        <div class="col col-lg-3">
            <?php $this->renderPartial('../../common/_sidebar')?>
        </div>
    </div>

</div>










